import request from '@/api/request'

// 删除收货地址
function addressDelete(data) {
    return request({
        url: '/bufan/address/deleteAction',
        method: 'get',
        data
    })
}

//收货地址详情
function addressDetail(data) {
    return request({
        url: '/bufan/address/detailAction',
        method: 'get',
        data
    })
}

//保存/添加收货地址
function addressSave(data) {
    return request({
        url: '/bufan/address/saveAction',
        method: 'post',
        data
    })
}

//收货地址列表
function addressList(data) {
    return request({
        url: '/bufan/address/getListAction',
        method: 'get',
        data
    })
}

export default ({
    addressDelete,
    addressDetail,
    addressSave,
    addressList
})